ci/prow: Build tests before trying to install
authorColin Walters <walters@verbum.org>
Tue, 27 Jun 2023 09:27:23 +0000 (05:27 -0400)
committerColin Walters <walters@verbum.org>
Tue, 27 Jun 2023 09:27:23 +0000 (05:27 -0400)
Our `install` target doesn't depend on `all` unlike the
rpm-ostree version; not doing so is arguably better, so let's
explicitly build before installing.

ci/prow/Dockerfile

index 156db34dfb13f3d99f08f8ee61def0ede9c8d28e..b72d4719f017c43c9952d82c6095427aba590a21 100644 (file)
@@ -2,6 +2,7 @@ FROM registry.ci.openshift.org/coreos/fcos-buildroot:testing-devel as builder
 WORKDIR /src
 COPY . .
 RUN env CONFIGOPTS=--with-composefs ./ci/build.sh && make install DESTDIR=/cosa/component-install
+RUN make -C tests/kolainst
 RUN make -C tests/kolainst install DESTDIR=/cosa/component-tests
 # Uncomment this to fake a build to test the code below
 #RUN mkdir -p /cosa/component-install/usr/bin && echo foo > /cosa/component-install/usr/bin/foo